<template>
  <div>
    <Hx :item-data="{'service':newsData,'title':'新闻中心','columnId':260,'source':'Xgbd'}"></Hx>
  </div>
</template>
<script>
  import Hx from '../components/common/Hx'
  export default {
    name: 'Xgbd',
    mounted() {
      var me = this;
      //请求接口获取 10条 新闻资讯数据
      me.$http.get('http://m.nsr.com.cn/xinsilu/v1/column/content/260?max=9&offset=0&type=1&siteid=1', {
        params: {}
      }).then(response => {
        if (response.data.code == 'R0000000') {
          me.newsData = response.data.data.returnList
        }
      }, response => {
      });
    },
    components: {
     Hx
    },
    //数据
    data(){
      return {
        newsData:{},//新闻资讯数据初始化，往子组件传递用
      }
    }
  }
</script>

<style>

</style>
